package cn.pconline.autoclub.entity;

import java.util.Date;
import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;

/**
 *
 * @author ppc
 */
@Entity(tableName = "ac_message_detail")
public class MessageDetail {

    public static final int SEND_NO = 0; //未发送
    public static final int SEND_YES = 1;  //已发送
    @Id
    @Column(name = "message_detail_id")
    private long messageDetailId;
    /**
     * 消息ID
     */
    @Column(name = "message_id")
    private long messageId;
    /**
     * 用户名
     */
    @Column(name = "user_name")
    private String userName;
    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private long uid;
    /**
     * 状态 0》未发送 1》已发送 -1》发送失败
     */
    @Column(name = "status")
    private int status;
    /**
     * 创建时间
     */
    @Column(name = "create_at")
    private Date createAt;
    /**
     * 发送时间
     */
    @Column(name = "send_at")
    private Date sendAt;

    public long getMessageDetailId() {
        return messageDetailId;
    }

    public long getMessageId() {
        return messageId;
    }

    public long getUid() {
        return uid;
    }

    public int getStatus() {
        return status;
    }

    public void setMessageDetailId(long messageDetailId) {
        this.messageDetailId = messageDetailId;
    }

    public void setMessageId(long messageId) {
        this.messageId = messageId;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getSendAt() {
        return sendAt;
    }

    public void setSendAt(Date sendAt) {
        this.sendAt = sendAt;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
